Fixes on real Linux run. Locks, style, async operations.