Voltage-gated pinning in a magnetic domain-wall conduit