Fix race condition in testExpiresAsString

This race condition is common when running the tests with HHVM + JIT,
due to JIT overhead when not warmed up.
Merge pull request #803 from fredemmott/v2.4.2-derace-testExpiresAsString

Fix race condition in testExpiresAsString