[SPARK-58056][CORE] Improve `NettyStreamManager` to serve only files under the registered directory