[rt][nfc] Rewrite #ifndef as #if defined(). am: 2d999118b7 am: f931105947

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

Change-Id: I9ee48820df72daeb849e35261568268b021e2d3e