Synchronization by magnetostriction