I learned the same fairy tale.
Another good version of lock her up could be a sing-song from ‘Ring Around the Rosey. -— — “Take the keys and and locker her up, locker her up .. Take the keys and lock her up, my fair lady...”