jpeg2000: Add mutlti-threading support to decoder