Workaround for https://jira.mongodb.org/browse/PERL-263, which basically means query timeouts don't work for aggregation.