Motion of phase singularities in a class-B laser