truncate: Fix corruption when plugin changes per-connection size