Shared/networking: fixed a bug that caused the write lock to not be properly initialised (it shouldn't even be used on anything other than IOCP, but that's another story).