Patch provided by Stewart Andreason.
This will use the inherently unsafe versions of the load methods which can result in deleting an object (from the cache) that has just been loaded in the database thread. Symptom OSG WARN deleting still referenced object. branches next, origin/next
Changed definition in config_cmake.in means #ifdef is no longer a valid test; use #if instead.