Log Message: When using pth as thread implementation, also include pthread-sem. Supposed to fix PR 26051.