Prevent potential deadlock when closing idle connections
Correctly recreate and repopulate buffers when changing max idle conns