Change row locking option to be called lock, and added api doc