target::system::wait() function added in each platform

Signed-off-by: Youngki Ahn <avej.com@gmail.com>