Better mutex, fix for unauthed unlock