If you overcook your cauliflower it will release water, which can cause the sauce to go watery. If your sauce was thick when it went under the grill/ in the oven it was most likely water from the cauliflower causing it to go watery. Make sure to cook the cauliflower until tender but still firm, drain well and pat dry.