Added queue lock initialization.