Patrick wins Massachusetts' Dem primary for governor