Another spinlock implementation fix. Flush io pipe before switching to spinlock mode.