DosCloseMuxWaitSem closes (ends access to) a muxwait semaphore for all of the threads in the calling process.
When all of the processes that opened the semaphore have either closed the semaphore or have ended, the system deletes the semaphore.