[sanitizer] Fix build with Android NDK r8e.
Uses a helper to consistently verify the stop reason in all tests.

- Also removes a redundant import statement.