Add mutex so queue operations are async safe