Added the new version of barrier-test.c and barrier-sanity.sh files

Signed-off-by: Satheesaran <satheesaran@gmail.com>