[PATCH 5.10 018/286] nvme: introduce helper function to get ctrl state