fixed locking acquisition in 32bit virtual memory functions