[#45989987] Use db lock to prevent multiple requests from invalidating an instance account at the same time.