It's displayed by default (imho). If the user clicks on "Edit" the following lines should appear:
Page locked
This page is currently locked for editing by another user. You have to wait until this user finishes editing or the lock expires.
Currently locked by: admin
Lock expires at: 2011/08/01 19:45 (15 min)