Add a few more error messages to db locking

This could be useful when things don't work as expected. STDERR only.