Don't extend the file if we still might return RESTART.  This isn't a real
bug, because the only place from which we might return RESTART is if we
find the record already inserted, and we know that's impossible in this
case, but it's a trivial restructuring of the code that might avoid future
bugs.