Keep a cache of sessions and cursors across operations.
merge master
Don't try to cache cursors across recovery units.  This avoids problems where cursors stay cached and block subsequent drops or renames.