I/O synchronization via distributed clocks