ACLU sues over possible jail loophole