[vault] lock repository when working with it

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
Merge pull request #17 from nemomobile/lock-repo

Lock repository when working with it