If yout surpassed the time limit to claim funds back, then they are lost, that mean if you get into the next lottery period without having claimed your gil back, same it does if you won, but did not pick up the house before next lottery.

But I don't know if you have been hit by an actual bug.