Fix for multithreaded access

This is the fix for the issue "Null reference exception occurs after the call to Int.ToString() from multiple threads" https://bugzilla.xamarin.com/show_bug.cgi?id=23242