Avoid using the terrain instance.
Make Terrain a RefCountedPtr object.
Hand off the terrain to a RefCountedPtr for each patch generation job.
Merge remote-tracking branch 'fluffyfreak/Fix2405Crashes'