Go to tools and personal and check the box thats says "Show me as away when I'm inactive for xx minutes" ... when you press win-L to lock your workstation, Messenger will set your status automatically to "idle", which means that you would be away (at least for all unpatched Messenger clients
). Hope this helps!