[PATCH 4.14 03/38] net: split out functions related to registering inflight socket files