Noise robustness of synchronization of two nanomechanical resonators coupled to the same cavity field