So I just thought of something. An angel can enter a vessel as long as they give permission, and may reside in said vessel however long they want and whenever they want until the vessel no longer grants permission and casts the angel out.
Sam never cast Lucifer out.
Sam never told Lucifer to get out of his body.
Lucifer still has permission to enter Sam’s body.