Related to b3b5e36d.
1. Proper auto release shutdown callback. 2. Proper Mutex::releaseLock() method.