The ratio for a planet to be tidally locked has to be 1:1, but the ratio for Mercury is 3:2. How is Mercury tidally locked if the ratio is not 1:1?
The simple answer to your question is that Mercury is not tidally locked. You may have seen old books (before 1965) that said it was tidally locked, because it was once assumed to be so. Alternatively, as zephyr said, your source may have been referring to the 3:2 resonance, but that is also not really the same thing.
It's not tidally locked like the moon is because it is in a 3:2 resonance with the sun. It rotates three times for every two orbits it makes. So it isn't considered a tidal lock because it means they usually need to be in a 1:1 resonance. I think you were referring to Wikipedia, where it said Mercury was in a tidal lock with the sun. A 3:2 resonance would not be considered regular tidal locking, but elliptical tidal locking. Elliptical tidal locking means when a body is in a stable resonance that is not 1:1, so Mercury wouldn't be the best example of a tidal lock, but it would be a good example of elliptical tidal locking.