Update lock example