Executors and administrators may be garnished for a debt due by their testator or intestate to the defendant; but judgment shall not be entered in such case against an executor or administrator until the lapse of six months after the grant of letters; and they may be garnished as having effects due to legatees or distributees; but judgment shall not be rendered against them in such case, except with their consent, until after a final settlement of the estate.