Core/Socket: Fix typo in constructor

Using moved objects is generally a bad idea

Thanks @Daejiv

Closes #12800
Tools/MMAPs: Fix uninitialized value in mmap_generator

Fix uninitialized value in mmap_generator. This should fix mmaps_generator broken in some build configurations.