Elijah McCoy, Inventor of the Automatic Lubricator