MB-6702: correctly handle symlinks in misc:rm_rf
MB-6702: correctly handle symlinks in misc:rm_rf

Change-Id: I816576a3ce814d39bba7360fcdef672794e0243b
Reviewed-on: http://review.couchbase.org/20986
Reviewed-by: Aliaksey Kandratsenka <340b8e09ca65cd3fc686427fcfed17e87eaf61e2@gmail.com>
Tested-by: Aliaksey Kandratsenka <340b8e09ca65cd3fc686427fcfed17e87eaf61e2@gmail.com>
Reviewed-by: Liang Guo <863407acb9e207441ec9e80d0debd4fe4489aa9b@couchbase.com>

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