[API Notes] Ensure that modules get rebuilt when binary API notes change.

Extend the solution for ensuring that modules get rebuilt to cases
where the inputs are precompiled binary API notes, rather than just
source API notes that get precompiled into the cache. Fixes the rest
of rdar://problem/25639554.

(cherry picked from commit 35d7c61210eed20096bbd9488f89a8eb25b4ff51)
5 files changed