If you know neighbors or feel comfortable, your best bet is probably to get your dog to meet them in better
circumstances (invite them to your apartment if your dog is good with that, maybe meet totally outside the building if that's
more successful, etc.) and then encounter the same people again with treats in the
narrow hallway in a planned way.