gstpluginloader: Don't hang on short reads/writes
If read_one or write_one was called but the stream closed before it could read/write a whole packet, read_one/write_one would hang indefinitely, consuming 100% CPU. This MR fixes that by treating a short read/write as an error.
Edited by Martin Dørum