elf: restore correct region protection after relocation