Screen locking should have a blocking option (return when screen is actually locked)
xfce4-screensaver-command --lock
currently sends the screen-lock signal and exits immediately. This is an expected and correct default behavior, however more synchronous execution is sometimes preferred. I'm proposing an additional switch that would make xfce4-screensaver-command --lock
exit when screen is actually locked.