Auto close handler

Add a handler to the WT_EVENT_HANDLER structure that receives a callback whenever WiredTiger automatically closes a handle.

Also add a stub implementation to the Python API. Nothing in the Java API yet.

Not yet ready to merge, but I wanted to get it through a round of testing.