Fixed handling of terminal operations in `updateSlave` handler.
Fixed handling of terminal operations in `updateSlave` handler.

An offer operation can be become terminal between any previously
received non-terminal offer operation status update and receiving an
`UpdateSlaveMessage` (e.g., if the agent failed over, or when the
agent was partitioned from the master).

The master will in its offer operations status handler attempt
to apply operations which became terminal since the last update. At
the same time, the total resources in an `UpdateSlaveMessage` would
already contain the result of applying the operation, and we need to
prevent the master from attempting to apply the same operation twice.

This patch updates the master handler for `UpdateSlaveMessage` to
transition pending operations which are reported as terminal without
also updating the resources on the agent as any update would already
be reflected in the new total from the `UpdateSlaveMessage.

Review: https://reviews.apache.org/r/65072/

chhsia0/mesos,asamerh4/mesos,abudnik/mesos,andschwa/mesos,gsantovena/mesos,dforsyth/mesos,reneploetz/mesos,andschwa/mesos,jpeach/mesos,abudnik/mesos,Gilbert88/mesos,andschwa/mesos,kaysoky/mesos,jpeach/mesos,gsantovena/mesos,abudnik/mesos,reneploetz/mesos,dforsyth/mesos,asamerh4/mesos,Gilbert88/mesos,chhsia0/mesos,asamerh4/mesos,asamerh4/mesos,reneploetz/mesos,jpeach/mesos,Gilbert88/mesos,jpeach/mesos,jpeach/mesos,abudnik/mesos,chhsia0/mesos,gsantovena/mesos,dforsyth/mesos,asamerh4/mesos,gsantovena/mesos,chhsia0/mesos,jpeach/mesos,kaysoky/mesos,reneploetz/mesos,Gilbert88/mesos,andschwa/mesos,chhsia0/mesos,asamerh4/mesos,gsantovena/mesos,chhsia0/mesos,andschwa/mesos,reneploetz/mesos,gsantovena/mesos,abudnik/mesos,kaysoky/mesos,kaysoky/mesos,dforsyth/mesos,abudnik/mesos,kaysoky/mesos,chhsia0/mesos,Gilbert88/mesos,andschwa/mesos,kaysoky/mesos,Gilbert88/mesos,Gilbert88/mesos,dforsyth/mesos,asamerh4/mesos,dforsyth/mesos,jpeach/mesos,reneploetz/mesos,dforsyth/mesos,gsantovena/mesos,andschwa/mesos,kaysoky/mesos,reneploetz/mesos,abudnik/mesos