core: Replace uses of 'drop' in task module with 'finally'. #5379
auto merge of #6113 : brson/rust/task-drop, r=graydon