[sdb] Fix a race in the sdb tests exposed by the recent threadpool changes.