Automatic bar feeder for lathes