[nif] added sched_yield to handle uniprocessor situations better

Change-Id: I658ce7330eb99bd1e9baf441e76525dfb9002687