x86: Fix alternatives and kprobes to remap write-protected kernel text