find_(program,library,file,path): add validation function

Fixes: #23603
45 jobs for !7364 with find_item-validation-function in 5 minutes and 31 seconds (queued for 3 seconds)
latest merge request