DosCloseMutexSem closes (ends access to) a mutex semaphore for all of the threads in the calling process.
When all of the processes that had opened the semaphore have either closed the semaphore or have ended, the semaphore is deleted by the system.