Added info about lock release in code example