commoncap: move assignment of fs_ns to avoid null pointer dereference