Change the LockDir code to use get_bytes rather than get().
If we are always going to read all the bytes anyway, this is better for apis. Also, get_bytes() always closes the file handle in a finally block, rather than doing it asynchronously through the deconstructors.