[PATCH 5.17 006/772] riscv: Initialize thread pointer before calling C functions