tal: make sure tal_free() preserves errno.