This functions performs the same as hutils_wait_clhd (), apart from that it employs a busy loop timeout, calling hutils_wait_chld () each time and exiting if the timeout is over.