Currently, FlushUnneededASanShadowMemory invokes ReleaseMemoryPagesToOS
on all platforms. The latter function is complex and used by other parts
and implementing it on systems like Fuchsia is tricky. However, the
former is fairly straightforward to implement.
This change decouples the two functions and makes
FlushUnneededASanShadowMemory implementation per-platform which allows
implementing this function separately from ReleaseMemoryPagesToOS. On
all systems except for Fuchsia, FlushUnneededASanShadowMemory is still
implemented in terms of ReleaseMemoryPagesToOS so this change should be
NFC.