Use a mutex/cond for capture job to prevent job finish
before all camctl image download events have been processed.