Optimize the text output of the /api/pendingacls endpoint following @abadger 's advice

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
Adjust the unit-tests for the changes in the output generated by /api/pendingacls