GSocket: Add function to get the currently available bytes for reading