Creates a condition function.
Condition function, that will be taken into account, on evaluating requirements of unloading for specific object.
If condition function returns true, then object will be unloaded. Condition function will be called only for objects, that support unloading.