Fix metadata memory leak

Metadata is not properly removed in Bukkit after the metadata subject has
died/been garbage collected. This results in a memory leak of metadata
values.