When I lock the screen, Gmail chat appears at the bottom of the screen just like when it's unlocked. Is it a bug?
Definitely sounds like a bug.
I would suggest using Empathy for chatting instead of the web interface, because I have no experienced this problem with Empathy (or with the web interface for that matter). You can report the bug against the
You can also mark it as affecting
I recommend reporting this bug.