Fix for rid mechanism to take care of multiple threads in the jvm

https://github.com/thinkaurelius/titan/issues/446