Fixed skipped updates on modules with default_checkout_ref
Modules that are checkout out with a 'default_checkout_ref' were compared with HEAD of the local state, which lead to these repositories not being updated even if there are changes upstream. This fix only works for repositories where the remote is called 'origin'.