anl_posix: Fix bug in barrier implementation