+thread::detach ownership fix;

thread::detach now correctly releases ownership of handle
thread is now usable with member functions