Locks frame buffer and cursor bitmap preventing writing operations.
This method can freeze the message handler thread so ensure you call UnlockFrameBuffer and to maintain frame buffer locked for less time as possible.
Applications could prevent frame buffer updates just setting Suspended = true, which does not freeze the connection.