ensure active record connections are properly handled
fixes concurrency issues that allowed next_subjob to be sent
to sidekiq multiple times. hack.