Updated threading implementation

Updated thread and runnable with more implementation details. This has a
small test function that does not appear to deadlock. _running should be
probably more of an event to trap conditions of threads going into be
suspended mode due to opts.