[C#] Fix thread deadlock when using a worker thread to load a script with a generic base class
#pragma once