tdb: Fix bug 7248, avoid the nanosleep dependency