osg qt5 support

Fix the assert with using GraphicsContext in another thread.

To use this change, you must build osg with "BUILD_OPENTHREADS_WITH_QT" flag set