fix potential race in user test

Signed-off-by: Sergei Ianovich <ynvich@gmail.com>