capmt: fix the mutexes and do reconfigure faster, fixes#2344