Magnetic domain wall pinning by a curved conduit