fixed bug where advisory locks would run out of shared memory