Measuring Neural Synchrony by Message Passing