Minor changes based on review comments
  Add osd_stat_t arg to check_nearfull_warning()
  Use cur_state with lock in check_failsafe_full()