mutex: Make more scalable by doing less atomic operations