What is the ideal thickness of the uterine lining for and IUI to be successful?

Unknown. Certainly pregnancy rates are very low when the lining is less than 8 mm. Likely the ideal lining is between 10-14 mm. That probably varies between women.