storage: improves locking

- Implements windows file locking (issue #14)
- Introduces Storage.Lock() method
- Adds manual test for file locking
leveldb: moves fields that require 64-bit alignment to the top