use relative packages.
add protobuf to .gitignore.
remove unnecessary locks.