SSP-2305 Emulate OpenSessionInViewFilter for background jobs