src/gen-lock-obj.sh runs in /bin/sh which does not support echo -n on macOS, and generates garbage. Resolved by using printf which is posix compliant. Signed-off-by: Georgi Valkov <gvalkov@abv.bg>