I do not think the medicine was ultimately locked or moved into the room with the guns. Jack's reaction to the question posed by Locke was strong enough to make me think he resisted the idea.
whoa, too much over analysis on the pills.Here's what happened in a nutshell:
1) Locke suggested jack lock up the pills
2) Jack asks why?
4) Jack digs through sawyers tent
5) Sawyer confronts Jack, demands pills back or there will be trouble
6) Jack walks away with pills
8) Sawyer, after claiming the guns, returns pills to Jack
Lets fill in blanks with what was implied on the show.
3) Locke made that suggestion because he knew Sawyer had pills... how else does Jack know where to look?
7) Sawyer was alone in the hatch while Locke was hiding guns... plent of time to walk into safe and reclaim pills.
So in conclusion, bring back Gabrielle.