IIRC there's a spring clamp round the body of the outer cable next to the end of the threads, which spring loads a ball that locks the inner cable in place as you twist it, so just replacing the inner cable won't cure it, but removing the outer cable and having a look at what's happening (or not happening) might.