This potential loophole is closed. It was discussed here
Summary: "Anyone who works for less than nine months a year or works less than 50 % of normal working hours is regarded as not being in permanent full-time employment.” [means: Pay AVS based on wealth]