Instead of blindly marking the inject hook page as +rx, we remember its actual prior protections and restore those. This avoids crashes in cases where the app's initial code is actually writable.
Tested manually by the filer of #5198 (closed). It is difficult to create an automated test.
Fixes #5198 (closed)