Vacuum currents in partially compactified Rindler spacetime with an application to cylindrical black holes