How does the bear mother ensure her cubs don't escape during hibernation?
She probably can't, but a bear that wanders out of the den away from it's mother probably won't be doing much reproduction.  Infant wanderlust will be strongly selected against.