Refactor: scheduler: best practices for allocate_instance()
Rename allocate_instance() to assign_instance() for consistency, add a doxygen
block, drop redundant data_set argument, and improve log messages, comments,
variable names, and formatting.
Also, the callers only cared whether the returned node was NULL or not, so
change the return type to bool.