[cvs-nhc98] patch applied (yhc): Mover forkAfter to UnsafeJS. Added waitFor as a general thread -event interface.