Split the windows and posix lock backends

Makes it a bit easier to read.