Effect of phase noise on the generation of stationary entanglement in cavity optomechanics