Used action mutex in main process and command thread