issue 968

- added max_ok_timeout to prevent print hangs
- applied refresh_cmd_timeout() across marlin_main for consistency