add connmgr_detach

Change-Id: I8a0634e4924c7676b130ebb4537790fdf689b827
Reviewed-on: http://review.couchbase.org/34564
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>