*: support purging old wal/snap files

Fix #1764
because it doesn't call any PurgeFile functions, and there is no need to wait on nil error channel.