If you have a decent grip, compress the cap at two opposing points on the side of the cap and twist. I haven’t encountered one yet that wouldn’t come off.
Just so ya know, I tried your solution, and indeed, a good firm grip removed the ‘locked’ cap.