מַסְגֵּר maçgêr (H4525)

a fastener, i.e. (of a person) a smith, (of a thing) a prison

1) a shutting up, locksmith, smith, dungeon, enclosure, builder of bulwarks 1a) locksmith, smith 1b) dungeon

from סָגַר (H5462);