Fix issue with _lock not allocated