cap_net: fix verification of bind permission
MFC after: 5 days
(cherry picked from commit f45ca435bd2cba2ea6d9b79dbef275bc5ea4036a)