[PATCH v7 1/8] kernelbase: Restructure the open_key() loop.