capture: add mutex protection when reading the image fifo.