This is equivalent to g_bit_lock, but working on pointers (or other pointer-sized values).
For portability reasons, you may only lock on the bottom 32 bits of the pointer.
address has a
volatile qualifier, this is a historical
artifact and the argument passed to it should not be