Fix flags dying if set while expired

Unexpire the flag magically if it expired just before being set.