A simulation of weak-light phase-locking for space laser interferometer