Merge "Fix two errors in pthread_detach.cpp."