introduced mutex for paymentservice sample to synchronize payment api calls