serial/ns16550: add an option to avoid hanging on broken platforms