lock: Remove bad import

Fixes compilation on !windows.