Fixed PHP-877: Initialise the random value per process/thread, instead of per request.

When setting it per request, it is much more likely to get clashes in the same
process as the inc value can randomly be reset to another already existing
value, instead of just increasing as it should.
Fixed CS so that folds work.