What if they don't need to lock themselves up? What if they found a better way?
You said they behave just like wolves, right? This means their brains work like regular wolf brains except without years of memories, life experiences, and more importantly pack-experience. So how about this: when werewolves are in human-form, they domesticate regular wolves and turn them into a pack. They then train the regular wolves to be friendly around humans, and this way, when they turn into wolves themselves, the real wolves can teach their wolf-forms how to act and behave in accordance to the "pack law"—not sure the scientific term—, and thus they learn to be friendly around humans since that's what they taught the pack while in human form.
They should also let their domesticated pack have an alpha (and not try to fill that roll themselves while human). This way, the alpha can maintain social order and hierarchy when they turn into wolves.
So now, when the full moon happens the werewolves don't lock themselves up. Instead, they do the opposite; going outside to fall in with their personal, domesticated wolf pack. 376
The pack then guides and teaches them 'how to wolf', and the alpha keeps them in line allowing them to safely learn how to behave as animals.
In this universe, the reason werewolves have a bad reputation isn't because they are just inexplicably-evil killing machines but because their wolf-selves are basically children in adult bodies. Having never lived in a pack, they lack basic animal social skills and don't know how to behave around others. They lash out because they are scared; never having learned otherwise. (Also, being chained and locked indoors each time you wake up is probably terrible for one's mental health and might lead to some anger issues, unsurprisingly...)
Thus, waking up into a real-wolf pack and having a knowledgeable real-wolf alpha allows their wolf-selves to function naturally as animals do and gives their tribe high mobility because they don't to be tied down to any location or structures.
They are able to live peacefully and can rely on the pack to teach them how to behave and on the alpha to keep them safe and in line.
Hm... wouldn't it be cool if someone wrote a story about this, except on the day before the full moon some dumb hunter killed their alpha. Imagine the fear and anger—and fear of anger—the tribe would experience going into the night; not knowing the kind of world they will comeback to when they wake up.
Who will step up as alpha? Will restraint in the pack prevail? Or, will the loss of their leader set the pack on an irreparable path to destruction? 376