Delete weak or strong global JNI refs appropriately