more correct lock/unlock functions
added Dumper module