How is locktime enforced in the standard client?
It's checked in the IsFinal() method of CTransaction. A non-final transaction cannot be included in blocks.

A transaction is final if either:


The lock time is in the past.
All of the inputs have sequence numbers equal to UINT_MAX.


The second one is probably what confused you.