How I prevented duplicate token request in an identity server using semaphore technique