[sanitizer] Fix StopTheWorld build on non-Android ARM.

Original patch by Abdoulaye Walsimou Gaye.