Revert "Catch writes to protected memory in mmapped arrays (fix #3434)"

This reverts commit caa4bfa17aeaada0c66f33128e206477842f7eab.