fix data race in outbox test

Signed-off-by: Momchil Atanasov <m.momchil@gmail.com>