Bug #12523: Mark JIT pages as non-writable

Port of work-in-progress patch at https://bugzilla.mozilla.org/show_bug.cgi?id=977805.