Use CheckedCall for mprotects

Aims to prevent silent failures causing SIGSEGV in random places.

Bug: 66910552
Test: test-art-host

Change-Id: I91742b0b0059b5125ac663c3c3422ac5562df0fa
diff --git a/runtime/oat_file.cc b/runtime/oat_file.cc
index 9a42c29..3f4cb94 100644
--- a/runtime/oat_file.cc
+++ b/runtime/oat_file.cc
@@ -638,7 +638,7 @@
     Runtime* runtime = Runtime::Current();
     if (UNLIKELY(runtime == nullptr)) {
       // This must be oatdump without boot image. Make sure the .bss is inaccessible.
-      mprotect(const_cast<uint8_t*>(BssBegin()), BssSize(), PROT_NONE);
+      CheckedCall(mprotect, "protect bss", const_cast<uint8_t*>(BssBegin()), BssSize(), PROT_NONE);
     } else {
       // Map boot image tables into the .bss. The reserved size must match size of the tables.
       size_t reserved_size = static_cast<size_t>(boot_image_tables_end - boot_image_tables);