Fix linter warnings with unnecessary copies

There were several warnings like this:

system/netd/libnetdutils/StatusTest.cpp:31:12: warning: local copy
'status2' of the variable 'status1' is never modified; consider
avoiding the copy [performance-unnecessary-copy-initialization]
    Status status2(status1);
    ~~~~~~ ^
    const &

Rearranged the tests to eliminate some of these, mark the remaining
ones as NOLINT.

Test: atest netdutils_test
Change-Id: I27898600ea8fa63afed628fbbaf00543718f70ce
1 file changed