[HapProcess] Add a new virtual method: hapMainThread().