Protect catalogue with a filesystem lock.

The Virtualbox Vagrant provider does not support concurrent operations
at the moment (1.6.3). This commit tries to serialize all operations
involving Vagrant.