test-replication: Lock AioContext around blk_unref()