Uart0 cleanup

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