No, there is no need to lock your backpack. Do not be afraid of this kind of thieves in the albergues. Still, always take or have with you all your valuable things, as domigee said, at shower, when walking around, when you sleep. On the road, however, don not let any of your belongings unattended.