Remove race condition

Signed-off-by: Rick Copeland <rick@arborian.com>