AI-692 : fixed regression in advisory lock