Twisted supersymmetries in lattice N = 4 super Yang-Mills theory