RUBY-775 Fix recursive locking with both immutable and mutable pool manager state