Update Socket.php

RFC 5162 requires the last known UIDVALIDITY AND the last known modification sequence
to be present and not empty; $md[self::CACHE_MODSEQ] is seen to be occasionally empty
causing the issued request to fail with BAD
The intention of the modification is to avoid the failing of the Statement issued to the server, caused by
not providing all required data.