These hooks on the side of the lock walls are used by the crew as a safety to keep the boat against the side.