handler: Sync allowfileowner_check() with filter