fix Issue #104: lock on clone