Fixed indentation issues in flock-tests.py, simplified template conditional