I see the same issue connecting to ubuntu from a mac. If I lock the desktop session from the client before disconnecting the session, then the remote ubuntu will at least be locked. However, it would be better if the session would automatically lock on disconnect. Is there any other workarounds for this or any code change planned?