[PATCH 5.15 020/374] nvme: introduce helper function to get ctrl state