More Threading changes

Can no use threads in pixel draw and join them without it going bang,
though have to handle the Window Update externally (see torustest4.pl).
If the window ref is passed then it will continue on a single thread