Really bad bug with mutex locking of sensor structure