Use thread-safe version of .NET Random

Original commit from Opensim developer JustinCC, adjusted for WhiteCore.