Handling concurrency with locks using Effect in TypeScript - Effect Community