[PATCH 5.4 013/194] nvme: introduce helper function to get ctrl state