posix: pthread: use spinlock instead of mutex for cancel lock

The cancel lock will not block so a mutex is overkill.

Signed-off-by: Chris Friedt <cfriedt@meta.com>
2 files changed