[PATCH 6.1 033/100] nvme: introduce helper function to get ctrl state