Brain-resident memory T cells represent an autonomous cytotoxic barrier to viral infection