add patch remove-debris-from-bgl_lock_ptr-conversion