blob: lock database on start

This will prevent multiple instances of libeblob from working with
single database.

Reported by: isharov@