[Issue 7364] mdb: clean up POSIX semaphores on environment close.