Change to unthreaded io in read_segment_header

read_segment_header() does not need to be in thread.
Formatting cache device returns error on failure