capmt: Fix the wrong pid handling in capmt_pid_flush()