MB-12643:bp:MB-12156 Don't delete buckets when changing datapath.

Change-Id: I0039e0bfa7353cd784791e6f7aca7d73a89778b7
Orig-Reviewed-on: http://review.couchbase.org/41332
Reviewed-on: http://review.couchbase.org/43229
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-12643:bp:MB-12156 Don't trap exits while change disk paths.

It's not needed and prevents us from a situation where process gets
stuck and wakes up much later (potentially after node became part of a
cluster) and thus invalidates the check that node is not provisioned.

Change-Id: Ic0d5b9a05088b0d376002338109d80cabc44f0ed
Orig-Reviewed-on: http://review.couchbase.org/41333
Reviewed-on: http://review.couchbase.org/43230
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-12644:bp:MB-12238: set timeout of 10 minutes on xmem requests

As another measure against possible issues when NAT between DCs
forgets about our connections. With this patch, if this happens, xdcr
will still get stuck, but it won't last too long due to timeout. When
timeout hits, affected xdcr replicators will crash and be restarted
have a decent chance of working.

Orig-Reviewed-on: http://review.couchbase.org/41588

Conflicts:
	src/pooled_memcached_client.erl
	src/xdc_vbucket_rep_xmem.erl

Change-Id: I3c8a96d71bcb983be5e804c3e6e8eaaf7be4e7b4
Reviewed-on: http://review.couchbase.org/43231
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-12644:bp:MB-12238: set SO_KEEPALIVE on xmem and ssl proxy sockets

As another guard against possible issues when NAT forgets about
connections between datacenters.

bp note: While I don't think it'll actually affect MB-12238 at all
given that keepalive doesn't work for non-idle sockets and idle
sockets are not kept long by connections pool, I don't want to cause
additional discussion with folks who monitor backports.

Orig-Reviewed-on: http://review.couchbase.org/41589

Conflicts:
	src/memcached_clients_pool.erl

Change-Id: Ica2f6e03b4929b730ba98a4b8621e321870d025d
Reviewed-on: http://review.couchbase.org/43232
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>