There's an obscure foobar plugin (
foo_lock) that does this, and I really miss it whenever I try other music players.
What it does is immediately pause playing when the Windows workstation is locked (WinKey+L) and immediately resume when it is unlocked. This makes my life so much easier. Please implement this (optional, of course)...