MB-9974: Close a stream if the vbucket state changes

Change-Id: Ib17f813e7249e9ae85ed8166e0269cf7a48789c7