The elevator motor was located at the top of the shaft or beside the bottom of the shaft. Eventually safety locks were used to guarantee what?