Allow older recoveries that don't support set_metadata

(cherry picked from commit e1ca0bf5df8cb5e8fd7db26a700d94e8dde6566a)