protobuf: Make pb_write_one being a macro

In case of error we will see the failing line number.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>