Added _lockCount>0 check to lock,unlock and trylock to make sure that it is set properly on first time entry.
Added _lockCount>0 check to lock,unlock and trylock to make sure that it
is set properly on first time entry.


scrawl/osg,tomasthoresen/osg,artoolkit/osg,scrawl/osg,marchelbling/osg,jtorresfabra/osg,marchelbling/osg,artoolkit/osg,openscenegraph/osg,openscenegraph/osg,marchelbling/osg,artoolkit/osg,jtorresfabra/osg,scrawl/osg,jtorresfabra/osg,tomasthoresen/osg,tomasthoresen/osg,openscenegraph/osg,tomasthoresen/osg,openscenegraph/osg,artoolkit/osg,jtorresfabra/osg,marchelbling/osg,scrawl/osg