Simplify locking

Yo,

When looking at #35 I realized that the locks wasn't working properly - when I added error handling I got a few errors related to that.

This PR will simplify how we do locks greatly, and now the locks has one single purpose - make sure that not more than one db is open at all times. I'm using the `lockfile` module for this, so there's fewer lines of code to maintain :)