* refactor(repositories): add a locking mechanism for restic operations * fix: add missing lock in list repositories