Acquires the this's lock.
If another thread is already holding the lock, this call will block until the lock becomes available.
Call @unlock to drop the lock again.
While holding the lock, you can only call the g_async_queue_*_unlocked() functions on this. Otherwise, deadlock may occur.