Bug 982128 - Check that shmem based locks are allocated properly. r=cwiiis