[PATCH 5.15 006/667] riscv: Initialize thread pointer before calling C functions