fix remaining two tests in threads.t (in --no-optimize at least), and re-enable tests.