Bugfixes for locking behavior + examples.
Released 0.2.2.