I have also experienced this bug, also intermittently as per the OP.
My laptop is pretty sluggish: once or twice, having awoken it from sleep mode, the normal desktop/dash/open apps have been shown for long enough that I can actually briefly interact with them (change active window, type text, etc) before the lock screen / password prompt appears. The slowest time, there would just about have been enough time for a quick person to open a terminal and do an `rm -r /` or similar. Therefore I'd say this is pretty security critical :)
I have also experienced this bug, also intermittently as per the OP.
My laptop is pretty sluggish: once or twice, having awoken it from sleep mode, the normal desktop/dash/open apps have been shown for long enough that I can actually briefly interact with them (change active window, type text, etc) before the lock screen / password prompt appears. The slowest time, there would just about have been enough time for a quick person to open a terminal and do an `rm -r /` or similar. Therefore I'd say this is pretty security critical :)