kernel32: Use ntdll functions where possible to implement the pthread wrappers.