[PATCH 6.6.y] iio: light: opt3001: fix deadlock due to concurrent flag access