perl: Fix assertion failure on Darwin

This assertion doesn't make sense to me, because a multi-threaded
build on Darwin works fine, despite not having Glibc.