Properly GC pinned objects when they go dead

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>