ENH: Adding `FileLock.get_data`.

Some small cleanups as well.