capmt: fix the mutex deadlock in capmt_destroy()