The confidence he gained from the ring is making him confident. He is a con artist who is capable of hiding his tracks.
Lockhart didn't sweat "Protego" A transparent shield blocked the spell and he didn't wait and cast "Stupefy" The blue spell was also fast and reached Snape