tmpfs: fix race between truncate and writepage