Fixed Master::finalize() to remove slaves and frameworks from the allocator.
Fixed Master::finalize() to remove slaves and frameworks from the allocator.

Short term fix for MESOS-2403.

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

neilconway/mesos,neilconway/mesos,andschwa/mesos,reneploetz/mesos,gsantovena/mesos,reneploetz/mesos,andschwa/mesos,kaysoky/mesos,dforsyth/mesos,jpeach/mesos,jpeach/mesos,dforsyth/mesos,yuquanshan/customizedMesos,jpeach/mesos,gsantovena/mesos,chhsia0/mesos,zmalik/mesos,asamerh4/mesos,craimbert/mesos,asamerh4/mesos,jpeach/mesos,asamerh4/mesos,zmalik/mesos,dforsyth/mesos,reneploetz/mesos,Aman-Jain-14/customizedMesos,craimbert/mesos,andschwa/mesos,dforsyth/mesos,andschwa/mesos,andschwa/mesos,verizonlabs/mesos,verizonlabs/mesos,chhsia0/mesos,reneploetz/mesos,asamerh4/mesos,neilconway/mesos,abudnik/mesos,Gilbert88/mesos,abudnik/mesos,asamerh4/mesos,gsantovena/mesos,Gilbert88/mesos,gsantovena/mesos,reneploetz/mesos,jpeach/mesos,zmalik/mesos,dforsyth/mesos,dforsyth/mesos,yuquanshan/customizedMesos,Aman-Jain-14/customizedMesos,chhsia0/mesos,abudnik/mesos,asamerh4/mesos,yuquanshan/customizedMesos,zmalik/mesos,neilconway/mesos,neilconway/mesos,Aman-Jain-14/customizedMesos,reneploetz/mesos,zmalik/mesos,reneploetz/mesos,andschwa/mesos,craimbert/mesos,andschwa/mesos,verizonlabs/mesos,verizonlabs/mesos,verizonlabs/mesos,Aman-Jain-14/customizedMesos,Gilbert88/mesos,neilconway/mesos,Aman-Jain-14/customizedMesos,Gilbert88/mesos,craimbert/mesos,abudnik/mesos,abudnik/mesos,yuquanshan/customizedMesos,craimbert/mesos,gsantovena/mesos,craimbert/mesos,gsantovena/mesos,asamerh4/mesos,kaysoky/mesos,chhsia0/mesos,kaysoky/mesos,Gilbert88/mesos,kaysoky/mesos,kaysoky/mesos,abudnik/mesos,Aman-Jain-14/customizedMesos,yuquanshan/customizedMesos,craimbert/mesos,chhsia0/mesos,zmalik/mesos,kaysoky/mesos,chhsia0/mesos,dforsyth/mesos,Gilbert88/mesos,Aman-Jain-14/customizedMesos,gsantovena/mesos,neilconway/mesos,chhsia0/mesos,yuquanshan/customizedMesos,verizonlabs/mesos,zmalik/mesos,jpeach/mesos,abudnik/mesos,verizonlabs/mesos,kaysoky/mesos,Gilbert88/mesos,yuquanshan/customizedMesos,jpeach/mesos