stdio: Remove redundant code around stdio_register() calls