Add heim_threads.h for kernel use

Steal mutex implementation from rx_kmutex, noting that the
initializer element is OS-specific and will need to be added in
rx_kmutex first.