Make extension test pass for thread safe PHP