Fixes:

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