barrier could be 0 when doing write_to_fd

it's possible to run get_read_barrier() when the marshal chunk list
is empty, and then when doing write_to_fd with barrier, the barrier
value is 0