Won't this log the error twice?  Once from here and once from cas_flock()?