make spin_thread tests more forgiving of slow VMs

test metadata directly and increase timeouts
Merge pull request #5463 from minrk/spin-slow

make spin_thread tests more forgiving of slow VMs