pbx: Fix off-nominal case where a freed extension may still be used.