Ah, see I thought it was that but what confused me was that I thought if that was the solution, I would take the lockpick from the skeleton a second time. I didn't realize it was still in my inventory, I thought starting a new loop meant that items in the world would be reset too.