ITS#9494 autogroup: fix db_open trashing thread context

3 jobs for master in 50 minutes and 46 seconds (queued for 2 seconds)