named_os_openfile was being called with switch_user set to true unconditionally leading to log messages about being unable to switch user identity from named when regenerating the key. (cherry picked from commit 071bc29962)
071bc29962