v4l2 framework in a multiple thread environment