fix building without threads (closes #23877)
1 file changed