Added the usuage of homing_dir_mask into the new homing_cycle function

Added the usuage of homing_dir_mask into the new homing_cycle function. in the process the original pos_dir boolean argument from homing_cycle  has been changed to bool approach. If approach is true, we want to approach the limits.