[GWP-ASan] Refactor memory mapping functions am: acebeb0c42

Original change: https://android-review.googlesource.com/c/platform/external/gwp_asan/+/1506409

Change-Id: I4eeb702b2ebb74523e8fcc652a1d270c1bc663b0