ability to lock immutable objects