Don't keep the database open when compacting its views
Don't keep the database open when compacting its views

Change-Id: I60d0454495ad30b4fc4d3aa1fda2967d9c056958
Reviewed-on: http://review.couchbase.org/9144
Tested-by: Filipe David Borba Manana <e0fcd583df77ec6c08e6d1257619cc1216ddc994@gmail.com>
Reviewed-by: Aliaksey Artamonau <3c875bcfb3adf2a65b2ae7686ca921e6c9433147@gmail.com>

ceejatec/ns_server,mschoch/ns_server,t3rm1n4l/ns_server,nimishzynga/ns_server,ceejatec/ns_server,ceejatec/ns_server,membase/ns_server,ceejatec/ns_server,daverigby/ns_server,membase/ns_server,nimishzynga/ns_server,mschoch/ns_server,daverigby/ns_server,pavel-blagodov/ns_server,pavel-blagodov/ns_server,mschoch/ns_server,ceejatec/ns_server,mschoch/ns_server,t3rm1n4l/ns_server,membase/ns_server,vzasade/ns_server,daverigby/ns_server,membase/ns_server,nimishzynga/ns_server,mschoch/ns_server,t3rm1n4l/ns_server,vzasade/ns_server,pavel-blagodov/ns_server,nimishzynga/ns_server,daverigby/ns_server,ceejatec/ns_server,vzasade/ns_server,nimishzynga/ns_server,daverigby/ns_server,mschoch/ns_server,membase/ns_server,nimishzynga/ns_server,membase/ns_server,t3rm1n4l/ns_server,pavel-blagodov/ns_server,t3rm1n4l/ns_server,vzasade/ns_server