safe write_to_fd() without locking based on stored read_barrier