MB-23067: Close file after error injection test
MB-23067: Close file after error injection test

Previously this test would leak a file handle that, on Windows, would
prevent following tests opening or deleting the couchdb file, causign
them to fail. This patch intercepts the arguments passed to the mock
close method and calls close on the file handle after the test finishes.

Change-Id: Ie55d6db1b5aca7fd41f54cbb5aecc4dc7f3842c7
Reviewed-on: http://review.couchbase.org/74977
Reviewed-by: Dave Rigby <a09264da4832c7ff1d3bf1608a19f4b870f93750@couchbase.com>
Tested-by: Build Bot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Reviewed-by: Will Gardner <5d7e5a4e8e63c739e07f011adf51f2e51dd3ec09@rdner.io>

daverigby/kv_engine,couchbase/ep-engine,couchbase/ep-engine,membase/ep-engine,membase/ep-engine,daverigby/kv_engine,couchbase/ep-engine,daverigby/kv_engine,couchbase/ep-engine,membase/ep-engine,membase/ep-engine,daverigby/kv_engine