Removed unused import.
Some refactoring of the FileLockAccess classes:

- StateInfoProtocol works only with DataInput and DataOutput, so that it is responsible only for serialization.
- Use buffered reads and writes to read/write the state region contents.
- Read or write the state region exactly once when opening the lock.