Fix fault handler to unregister on shutdown

This fixes a problem with the fault handler where it wasn't
unregistering itself during shutdown of the runtime.

Bug: 17133266

(cherry picked from commit e8b9afcd0cd86b8808af29a97332038aab70c604)

Change-Id: I1a4ec4292ec049046dda30769265680201729efb
diff --git a/sigchainlib/sigchain.cc b/sigchainlib/sigchain.cc
index 6f93083..2ba7405 100644
--- a/sigchainlib/sigchain.cc
+++ b/sigchainlib/sigchain.cc
@@ -45,8 +45,8 @@
 
   // Unclaim the signal and restore the old action.
   void Unclaim(int signal) {
-    claimed_ = false;
     sigaction(signal, &action_, NULL);        // Restore old action.
+    claimed_ = false;
   }
 
   // Get the action associated with this signal.
@@ -164,7 +164,6 @@
   return linked_sigaction(signal, new_action, old_action);
 }
 
-
 int sigprocmask(int how, const sigset_t* bionic_new_set, sigset_t* bionic_old_set) {
   const sigset_t* new_set_ptr = bionic_new_set;
   sigset_t tmpset;