testcase: also check non executable lib for missing rpaths

Our condition was only checking executables, which missed some non
executable libraries.

Following up on !172 (comment 96033)

/reviewed-on !180
11 jobs for master
in 0 seconds, using 0 compute credits, and was queued for 0 seconds