PR #165: Double GIL EliminationPerformance optimization removing redundant GIL locks and adding metrics toggle API