shared-mem-locks: clean up