tipc: fix error handling of expanding buffer headroom