Extend segfault workaround to PHP versions below 5.4.

Hopefully fixes further segfaults.
https://travis-ci.org/phpseclib/phpseclib/jobs/22822799
https://travis-ci.org/phpseclib/phpseclib/jobs/22822806