Add Mutex::lockSeconds method with timeout. Fix some warnings.: