Fix scheduler init race condition, fixes #5.
Merge commit '163facc' into 1.0.2_RC