Tried to use a mutex

Tired to use a mutex to get turn the button red while running the
command then yellow when it finished. Didn't work.