sh: clock framework update, fix count and kill off kref