[vault] lock repository when working with it

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>