Is there a way to lock a memory address, so that a program can't write to it?