pub fn apply_gas_delta(backlog: u64, delta: i64) -> u64
Apply a gas delta to a backlog value (signed).