RTorCtl should check the length of authentication-cookie files

See #4303 (closed) for details.