[libc] Move baremetal write_to_stderr implementation to io.cpp (#86890)

This is required to avoid multiple definitions error.

GitOrigin-RevId: e5b93994941245d35827b62ec91a537dfb52c243
3 files changed