Cannot unregister a global property

fix a bug of unregistering global properties in function delete_global: swap the tuple {Pid, Key} in branch {Key, Pid} of the function