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.
And fix some code indent issues.