Broke threads.h into two files (for better isolation)

UCC git Repository :: git.ucc.asn.au