patch to release shm registry lock from Kristian Amlie