Continuous-variable-entanglement swapping and its local certification: Entangling distant mechanical modes