Added a mutex where I forgot one.