Fix use-after-free when entries deleted during map operation
Fix use-after-free when entries deleted during map operation

dcreager/libcork,tempbottle/libcork,redjack/libcork,redjack/libcork,tempbottle/libcork,dcreager/libcork,tempbottle/libcork,tempbottle/libcork,rogers0/libcork,rogers0/libcork,rogers0/libcork,redjack/libcork,rogers0/libcork,redjack/libcork,rogers0/libcork,tempbottle/libcork,redjack/libcork,redjack/libcork,rogers0/libcork,dcreager/libcork,dcreager/libcork,dcreager/libcork,tempbottle/libcork