Finish getpeerinfo RPC syncnode field.

This commit adds code to get the current sync peer from the block manager
for use in the getpeerinfo RPC.