<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_bindings(self):
 # type: () -> bool """ Updates the bindings of the given component :return: True if the component can be validated """

        with self._lock:
            all_valid = True
            for handler in self.get_handlers(handlers_const.KIND_DEPENDENCY):
                # Try to bind
                self.__safe_handler_callback(handler, "try_binding")

                # Update the validity flag
                all_valid &= self.__safe_handler_callback(
                    handler, "is_valid", only_boolean=True, none_as_true=True
                )
            return all_valid