[socket] Implement external time synchronisation for socket
[testing] Add a test for synchronisation through socket