update lock mgr examples
fixed and updated the small examples