[PATCH openEuler-22.03-LTS-SP1 2/7] nvme: factor out a nvme_tryget_ns_head helper