kernel: fix a reference counting bug in overlayfs