Use IF_BUG_ONCE in buf_flush_to_tls()

See parent: the BUG() messages in this function caused dgoulet to run out of disk.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information