sqlalchemy, tests: fix table creation race condition

Change-Id: I5ac06e69487a67e23aad96c761baabcda8dfa3e9