[migration] Ignore IOError from readline.write_history_file (closes #2106621)
We already ignore them when reading the histfile, no reason writing it
back should be any different.
# sync and restart to make sure cwuri does not appear in formssync_schema_props_perms()