locks: consolidate NULL i_flctx checks in locks_remove_file