thread safety for HandleSignedHeartbeat