MB-10921 Add a test for fdleak during queries for views with a reducer

Change-Id: I23c3e8c1861e05c5154840e226132baa775c87c1
Reviewed-on: http://review.couchbase.org/40688
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Sriram Melkote <siri@couchbase.com>
Reviewed-by: Sarath Lakshman <sarath@couchbase.com>
Tested-by: buildbot <build@couchbase.com>