Fixed so threading isn't removed completely.
Sorry this took so long. Took too long to figure out that decode_ihdr_chunk()
was being called in each thread and thus overwriting the cur_w/h value set by
update_thread_context().
("Remove threading support" patch can be ignored now)