Add libsync
Add gitignore and Makefile
Replace strlcpy with strncpy

Rely on kernel doing the null-termination (which it does).
Add test-submit-fence