Bug 2479: Fixed unexpected failure of atomic operation tests.

Race condition tests for atomic operations need to ensure that all the
test threads have been dispatched.

Change-Id: I5a973060800bfff0df17f03def88f3e47b689ff4
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>