Symmetry protected line nodes in non-symmorphic magnetic space groups: Applications to UCoGe and UPd$_2$Al$_3$