Non-ablative capillary z-pinch for plasma-based waveguide