Fix timestamp counter on s390/s390x

Backport of zeromq/libzmq#818.