add timeout for CSubprocess::wait()

Signed-off-by: Du, Changbin <changbin.du@gmail.com>