opj_j2k_set_threads(): add sanity check to error out if called after opj_read_header()