fix-tests
[libc] Add implementations of pthread_equal and pthread_self.
[libc][NFC] Remove the now used thread_attrib target.
[libc][NFC] Add the platform independent file target only if mutex is available.