Improved toString of locks