Another try at gem lock