capmt: do properly the reconnection, fix another mutex bug - fixes #2227