Section 24. If the execution and return are not recorded in the registry of deeds within three months as aforesaid, the levy shall be void as against a creditor who has attached the same land or taken it on execution without notice of such levy, and also as against a purchaser in good faith for value and without such notice; but if such execution and return are recorded after the expiration of the three months, the levy shall be valid and effectual as against a conveyance, attachment or levy made after such recording.