[PATCH v10 6/7] kernelbase: Restructure the create_key() loop.