I'm doubtful as to whether these two sentences are correct.
I wasn't able to ride a bike until I was 20.
I was able to ride a bike until I was 20.
My suspicion is that only the first sentence is correct, but I don't know why the second should be wrong. However, I feel that the second will be better with past perfect in place of simple past:
I had been able to ride a bike until I was 20.