Local magnetization study of the first-order superconducting transition in CeCoIn5