Uart0 cleanup

The last #257 did not remove the race condition after all.