[PATCH] out_of_memory() locking fix