Add preferLocking flag to RotatingFileHandler
Rename preferLocking to useLocking