fixed missing unlock when looking in global heap is unsucessful