Truncate pid to 2 bytes

Mac OS X pids go up to 99999 as of Leopard, which causes an assertion in
num_to_le_uint.