ported test_reset_device.py to ocl
ported test_select_device.py
python3 fixes and functional but skipped test_select_device
factored out InOtherThread to be usable by other tests.
fixed test_reset_device to use “InOtherThread”
fixed select_device and reset_device for cuda