Fixed a bug in the code host application loader. The stopwatch used for diagnostic timing was not properly designed for being shared among competing threads. Making it thread static solved #1629.
Merge branch 'issue/1629' into develop. Fixes #1629.