Added locking to getruntime to prevent race conditions.
Added locking to getruntime to prevent race conditions.

sburnett/seattle,sburnett/seattle,sburnett/seattle,sburnett/seattle,sburnett/seattle,sburnett/seattle