marks task and joinset as volatile

task and joinSet are used on multiple threads, but aren't volatile or synchronized yet.