Make sure default connection specified in db_magic calls is actually used in all threads