Apply clang-format for core/shared and product-mini files
Modify the argument of os_cond_reltimedwait to uint64 type to support long time wait, and handle possible integer overflow.
Co-authored-by: Xu Jun <jun1.xu@intel.com>