Work out what sbws is doing in its measurement threads

In legacy/trac#30227 (moved), we discovered that sbws is not producing useful results for 30-60% of its measurement time. Let's work out why.