libc/print: Make itoa aware of buffer size

No longer prints unless buffer has enough space for the entire number and
sign character.