shared-mem-locks: clean up server context