@Sunil ,
On top of that, as @JamesTran-MSFT pointed out, I also noticed that you posed a similar question on Stackoverflow with the extra detail that you are using azure-sdk in GoLang to access the management API "Microsoft.Authorization/locks" endpoint. The azure-sdk appears to utilize the '2020-05-01' version by default, however this version seems to be not supported by the 'Microsoft.Authorization' namespace.
For further investigation, I've contacted the Azure-SDK and Service team to find out why the Azure-sdk for GoLang uses an unsupported version of the 'Microsoft.Authorization' namespace.
Here is GitHub link for this issue, you can also track the status from: https://github.com/Azure/azure-rest-api-specs/issues/18924
Hope this helps.
-----
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.