[libc] Implement sigpending (#237568) This patch implements the POSIX sigpending function in LLVM libc, along with unit tests. Part of #236167. GitOrigin-RevId: 90cd08c8381cf01921b915a56c7347bed1bf7a11