Synthesis of Biobased Flame-Retardant Carboxylic Acid Curing Agent and Application in Wood Surface Coating