This was super helpful. My locking mechanism was stuck/had come loose in my center console, thought it was broken.
Took it apart following your advice and found that it wasn't broken, but had at some point become misaligned (locking barrel was 180 degrees clockwise). Took the barrel out and dismantled the plastic mechanism, found that the plastic rotating barrel was all scratched which was causing it to catch and not rotate properly. So, sanded it down with 1200 and put a bit of silicone lube in it, reassembled in the correct orientation and lo' and behold it functioned perfectly.
I was about to buy a replacement lock but this guide saved me the trouble. Cheers dude.