Flatbed lathe