Move getTimestamp before ping block to avoid false suspect

If ping takes long time or GC pause during pings, it could suspect members incorrectly. It's safer to get the current timestamp before the ping block.