Refactor the current locking system which currently uses callback to instead use the Typescript 5.2 `using` api