Finished implementing SpinLock.

Finished implementing a rudimentary version of SpinLock that does not
follow .NET spec.
Also shifted the PlatformIntrinsicTransformationStage to run after the
IRTransformationStage.