return channel to connection pool after 401

fix for #785 - orphaned connections in basic/digest authentication:

* enable channel re-use for Basic/Digest authentication retries (note: not done in 1.8.x)
* for cases where channel re-use is disabled, return the connection to the connection pool (done in 1.8.x)