Fix locking bug in `IoLockFactory`
Tests couldn't be run 2x in a row because file length data was not being persisted.

This also fixes a bug in `CassandraIO` that improperly formats the `allKeys` query and the bug in the test that never exercised the `CassandraIO` code in the first place.