Merge "Fix pthread_getattr_np for the main thread." into lmp-dev