Update locking-modes.md

Added example for deadlock