Entanglement of propagating optical modes via a mechanical interface