In Protocol.read_pkt_line, assert the length of the data read matches the length prefix.

I hope this will narrow down the cause of errors like this: https://lists.launchpad.net/dulwich-users/msg00790.html