I don't know that you can GUARANTEE it, but ask the check in agents for what is known as a "gate pass," which is essentially a boarding pass for no flight. It gets you through security but not onto any airplane.
My husband used a gate pass when I traveled alone with our (then) 3-month-old once so he could help me manage with the stroller and all that jazz.