bugfix for multiple camera access (multi-threaded environment)