Add few missing NULL checks to avoid crash. Also, minor refactor of signal code and disable osFeature_Wait to signify osWait function not implemented. Signed-off-by: Praful Swarnakar <praful.swarnakar@intel.com>