Synchronize page protection modifications.

This prevents other threads from modifying page protections while the error processing is running.

BUG=
R=sebmarchand@chromium.org

Review URL: https://codereview.appspot.com/186850043