A variable-density absorption event in NGC 3227 mapped with Suzaku and Swift